﻿using PetaPoco;
using System.ComponentModel.DataAnnotations;

namespace Cxuu.Models
{
    [TableName("cxuu_ext_member")]
    [PrimaryKey("Id", AutoIncrement = true)]
    public class ExtMember
    {
        public int Id { get; set; }
        [Display(Name = "姓名")]
        [Required(ErrorMessage = "姓名未填写")]
        public string Name { get; set; }
        [Display(Name = "负责工作")]
        [Required(ErrorMessage = "负责的工作未填写")]
        public string Duties { get; set; }
        [Display(Name = "照片")]
        public string Photo { get; set; }
        [Display(Name = "职务")]
        [Required(ErrorMessage = "职务未填写")]
        public string Duty { get; set; }

        [Display(Name = "排序")]
        public int Sort { get; set; }
        [Display(Name = "状态")]
        public int Status { get; set; }
    }

}
